package com.askyjt.videosearch.mapper;

import com.askyjt.videosearch.entity.Video;
import com.askyjt.videosearch.vo.VideoVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yangjintao
 * @since 2020-11-02
 */
public interface VideoMapper extends BaseMapper<Video> {
    /**
     * 根据视频id和关键帧id查询搜索视频结果
     * @param videoIds
     * @param keyframeIds
     * @return
     */
    List<VideoVo> getVideoVoList(@Param("videoIds") List<Integer> videoIds,@Param("keyframeIds") List<Long> keyframeIds);
}
